#include <bits/stdc++.h>
using namespace std;
#define yes cout<<"YES"<<endl
#define no cout<<"NO"<<endl
using ll = long long;
void solve()
{
    ll n;
    cin >> n;
    ll opt;
    while(n--)
    {
        ll x, y;
        vector<ll> a1, a2, a3;
        cin >> opt;
        if(opt==1)
        {
            cin >> x;
            a1.push_back(x);
        }
        else if(opt==2)
        {
            cin >> x;
            a2.push_back(x);
        }
        else {
            cin >> x >> y;
        }
    }
}
int main()
{
    int t = 1;
    cin >> t;
    while(t--)
    {
        solve();
    }
   return 0;
}
